from crewai import Agent, Task, Process, Crew
from crewai.tools import BaseTool
from crewai_tools import SerperDevTool

#创建搜索引擎工具
search_tool = SerperDevTool()

#创建高级研究院Agent
researcher = Agent(
    role = '高级研究员',
goal = '发现AI领域的突破性技术',
    backstory='被好奇心驱使，你在创新的路上',
    allow_delegation=True
)

researcher_task = Task(
    description='识别AI领域下一个趋势。',
    expected_output = '关于最新AI趋势的全面报告',
    agent = researcher
)

crew =Crew(
    agents = [researcher_task],
    process=Process.sequential
)